package models;

import java.util.*;
import javax.persistence.*;
import play.db.jpa.Model;

@Entity
public class Task extends Model {
@ManyToOne	
public User user;
public String title;
public String content;
@OneToMany
public List<Comment> comments;
public int state;
public int priorety;
public Date pDate;


public Task(User user,String title,String content,int priorety,int state)
{
	
	this.user=user;
	this.title=title;
	this.content=content;
	this.state=state;
	this.priorety=priorety;
	this.pDate=new Date();
	this.comments=new ArrayList<Comment>();

}

}
